import { defineStore } from 'pinia'

export const videoStore = defineStore('vider', {
    state: () => {
        return { video: '', audio: '', name: '',connectionId:'' }
    },
    actions: {
        setVideo(videoParam) {
            this.video = videoParam;
        },
        setAudio(audioParam) {
            this.audio = audioParam;
        },
        setName(nameParam) {
            this.name = nameParam;
        },
        setConnectionId(id) {
            this.connectionId = id;
        },
        getVideo() {
            return this.video;
        },
        getAudio() {
            return this.audio;
        },
        getName()
        {
            return this.name;
        },
        getId()
        {
            return this.connectionId;
        }
    }
})